package com.geostar.constructionland.analyse.config;

import com.geostar.constructionland.analyse.validtor.AlyValid;
import com.geostar.constructionland.analyse.validtor.IValid;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Configuration
public class ValidConfiguration {
    @Bean
    public AlyValid getAlyVild() {
       Map<String,IValid> map = SpringUtil.getBeanByIfcClass(IValid.class);
       List<IValid> list = new ArrayList<>(map.values());
       return new AlyValid(list);
    }
}
